<?php

abstract class Application_Db_TableAbstract extends Zend_Db_Table_Abstract
{
    /**
     * Find row by single column value
     *
     * @param string $column
     * @param string $value
     * @return Zend_Db_Table_Row_Abstract
     */
    protected function _findByColumn($column, $value)
    {
        $column = $this->getAdapter()->quoteIdentifier($column);
        return $this->fetchRow($this->select()->where($column.' = ?', $value));
    }
}